import axios from '@/utils/request.js'

function filter(data) {
    return axios({
        url: '/api/recyclers/admin/filter',
        method: 'post',
        data
    })
}


function all() {
    return axios({
        url: '/api/recyclers/all',
        method: 'post'
    })
}


function del(id) {
    return axios({
        url: '/api/recyclers/del/' + id,
        method: 'post',
    })
}


function add(data) {
    return axios({
        url: '/api/recyclers/add',
        method: 'post',
        data
    })
}


function edit(data) {
    return axios({
        url: '/api/recyclers/edit',
        method: 'post',
        data
    })
}


export {all, del, add, edit,filter}